<!--%import("css/forum.css")-->
<!--#include("./header.html")-->

    <!--@if(count($forum_list))-->
	<div class="xe-ui-panel">
		<div class="xe-ui-panel-content cleared">
			<h2>{$lang->cmd_search}</h2>
			<form action="./" method="get" class="adminSearch">
				<input type="hidden" name="module" value="{$module}" />
				<input type="hidden" name="mid" value="{$mid}" />
				<input type="hidden" name="vid" value="{$vid}" />
				<input type="hidden" name="act" value="dispForumAdminContent" />
				<table cellpadding="0" cellspacing="0" class="xe-ui-form-table">
					<tbody>
						<tr>
							<td>
								<p>{$lang->mid}</p> 
							</td>
							<td>
								<p><input type="text" name="s_mid" value="{$s_mid}" class="xe-ui-panel-text" /></p>
							</td>
						</tr>
						<tr>
							<td>
								<p>{$lang->browser_title}</p>
							</td>
							<td>
								<p><input type="text" name="s_browser_title" value="{$s_browser_title}" class="xe-ui-panel-text" /></p>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
	    </div>
	    <div class="xe-ui-panel-controller">
	    	<hr />
	    	<p class="center">
	    		<a href="#" onclick="jQuery('.adminSearch').submit();" class="xe-ui-button-gray">{$lang->cmd_search}</a>
				<a href="{getUrl('s_mid','','s_browser_title','','page','')}" class="xe-ui-button-gray"><span>{$lang->cmd_cancel}</span></a>
			</p>
	    </div>
	</div>
    <!--@end-->
	<div class="xe-ui-panel">
		<div class="xe-ui-panel-content cleared">
			<h2>{$lang->forum} {$lang->cmd_list}</h2>
			<!-- Information -->
			<div class="summary">
			    <strong>Total</strong> <em>{number_format($total_count)}</em>, Page <strong>{number_format($page)}</strong>/{number_format($total_page)}
			</div>
			<!-- List -->
			<form method="get" onsubmit="return doChangeCategory(this);" id="fo_list">
				<table cellspacing="0" cellpadding="0" class="xe-ui-table">
					<thead>
					    <tr>
					        <th scope="col">{$lang->no}</th>
					        <th scope="col">
			        			<input type="checkbox" onclick="checkAllPrettyCheckboxes(jQuery(this),jQuery(this).closest('table').find('tbody'));" />
					        </th>
					        <th scope="col">{$lang->forum_title}</th>
					        <th scope="col">
					            <div>
					                <input type="hidden" name="module" value="{$module}" />
					                <input type="hidden" name="act" value="{$act}" />
					                <select name="module_category_srl" onchange="jQuery('#fo_list').submit();">
					                    <option value="">{$lang->module_category}</option>
					                    <option value="0" <!--@if($module_category_srl==="0")-->selected="selected"<!--@end-->>{$lang->not_exists}</option>
					                    <!--@foreach($module_category as $key => $val)-->
					                    <option value="{$key}" <!--@if($module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
					                    <!--@end-->
					                    <option value="">---------</option>
					                    <option value="-1">{$lang->cmd_management}</option>
					                </select>
					            </div>
					        </th>
					        <th scope="col" class="half_wide">{$lang->mid}</th>
					        <th scope="col">{$lang->regdate}</th>
					        <!--
					        <th scope="col">&nbsp;</th>
					        <th scope="col">&nbsp;</th>
					        -->
					        <th scope="col">{$lang->cmd_setup}</th>
					        <th scope="col">{$lang->cmd_copy}</th>
					        <th scope="col">{$lang->cmd_delete}</th>
					    </tr>
					</thead>
					<tbody>
					    <!--@foreach($forum_list as $no => $val)-->
					    <tr>
					        <td class="center number">{$no}</td>
					        <td class="center"><input type="checkbox" id="cart_{$val->module_srl}" name="cart" value="{$val->module_srl}" /></td>
					        <td><a href="{getUrl('act','dispForumAdminDashboard','module_srl',$val->module_srl)}" >{htmlspecialchars($val->browser_title)}</a></td>
					        <td>
					            <!--@if(!$val->module_category_srl)-->
					                <!--@if($val->site_srl)-->
					                {$lang->virtual_site}
					                <!--@else-->
					                {$lang->not_exists}
					                <!--@end-->
					            <!--@else-->
					                {$module_category[$val->module_category_srl]->title}
					            <!--@end-->
					        </td>
					        <td>{htmlspecialchars($val->mid)}</td>
					        <td>{zdate($val->regdate,"Y-m-d")}</td>
					        <!--
					        <td><a href="{getSiteUrl($val->domain,'','mid',$val->mid)}" onclick="window.open(this.href); return false;" class="buttonView"><span></span></a></td>
					        <td><a href="{getUrl('act','dispForumAdminDashboard','module_srl',$val->module_srl)}" class="buttonDashboard"><span></span></a></td>
					        -->
					        <td><a href="{getUrl('act','dispForumAdminForumInfo','module_srl',$val->module_srl)}" class="xe-ui-button-gray buttonSetting"><span>{$lang->cmd_setup}</span></a></td>
					        <td><a href="{getUrl('','module','module','act','dispModuleAdminCopyModule','module_srl',$val->module_srl)}" onclick="popopen(this.href);return false;" class="xe-ui-button-gray buttonCopy"><span>{$lang->cmd_copy}</span></a></td>
					        <td><a href="{getUrl('act','dispForumAdminDeleteForum','module_srl', $val->module_srl)}" class="xe-ui-button-gray buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
					    </tr>
					    <!--@end-->
					</tbody>
				</table>
			</form>

			<p class="cleared">
			        <a href="{getUrl('','module','module','act','dispModuleAdminModuleSetup')}" onclick="doCartSetup(this.href); return false;" class="xe-ui-button-gray"><span>{$lang->cmd_setup}</span></a>
			        <a href="{getUrl('','module','module','act','dispModuleAdminModuleAdditionSetup')}" onclick="doCartSetup(this.href); return false;" class="xe-ui-button-gray"><span>{$lang->cmd_addition_setup}</span></a>
			        <a href="{getUrl('','module','module','act','dispModuleAdminModuleGrantSetup')}" onclick="doCartSetup(this.href); return false;" class="xe-ui-button-gray"><span>{$lang->cmd_manage_grant}</span></a>
			</p>
		</div>
		
		<!-- Pagination -->
		<div class="xe-ui-panel-controller">
			<hr />
			<p class="center">
		        <a href="{getUrl('page', '')}" class="xe-ui-button-gray pagination first"><img src="{getFullUrl()}common/img/pagination_left.png"/></a>
			    <block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
			        {@$isGoTo = true}
			        <a href="{getUrl('page', '')}" class="xe-ui-button-gray pagination">1</a>
			        <!--<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>-->
			    </block>
			    <!--@while($page_no = $page_navigation->getNextPage())-->
			    {@$last_page = $page_no}
			    <a href="#" cond="$page_no == $page" class="xe-ui-button-gray pagination disabled">{$page_no}</a>
			    <a cond="$page_no != $page" href="{getUrl('page', $page_no)}" class="xe-ui-button-gray pagination">{$page_no}</a>
			    <!--@end-->
			    <block cond="$last_page != $page_navigation->last_page">
			        {@$isGoTo = true}
			        <!--<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>-->
			        <a href="{getUrl('page', $page_navigation->last_page)}" class="xe-ui-button-gray pagination">{$page_navigation->last_page}</a>
			    </block>
			    <a href="{getUrl('page', $page_navigation->last_page)}" class="xe-ui-button-gray pagination last"><img src="{getFullUrl()}common/img/pagination_right.png"/></a>
			</p>
		</div>
	</div>
</div>